﻿<UserControl x:Class="ATSV2.Views.NewsItem"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="240" d:DesignWidth="502" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">
    
    <Grid x:Name="LayoutRoot"> 
        <Border VerticalAlignment="Top" Width="502" Height="240" BorderBrush="Blue" BorderThickness="4" CornerRadius="5"/>
        <StackPanel Orientation="Vertical" VerticalAlignment="Top">
            <StackPanel Orientation="Horizontal" Margin="3">
                <TextBlock Height="28" HorizontalAlignment="Left" Margin="12,12,0,0" Name="lblHeader" Text="{Binding Titel}"
                       VerticalAlignment="Top" FontSize="16" FontWeight="Bold"  Width="346" />
                <sdk:Label Height="28" HorizontalAlignment="Left" Margin="6,12,3,0" Name="lblCreateDate" VerticalAlignment="Top" FontSize="10" FontWeight="ExtraLight" Content="{Binding CreateDate}" />
            </StackPanel>
            <Border Width="476" BorderBrush="Gray" BorderThickness="0,3,0,0" />
            <TextBlock Width="476" Height="136" Margin="12" Name="tbxBody" Text="{Binding Body}"/>

            <HyperlinkButton x:Name="hbtnLink" TargetName="_blank" NavigateUri="{Binding Link}" HorizontalAlignment="Right" Content="weiterlesen" Margin="0,0,12,0"/>
        </StackPanel>
    </Grid>
</UserControl>
